import requests

headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.9",
"Connection": "keep-alive",
"Content-Length": "83",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie":"pgv_pvid=2678340355; pac_uid=0_eba2b7ccdbf04; pgv_pvi=3691665408; pgv_info=ssid=s4115665061; ts_last=fanyi.qq.com/; ts_refer=www.baidu.com/link; ts_uid=919966251; gr_user_id=b066d1dc-d5d6-4229-9a84-927a0b9e1b38; 9c118ce09a6fa3f4_gr_session_id=a122f593-af28-4915-9002-e31a04d918e5; grwng_uid=df6a51f4-82c1-499c-b0aa-974ae68fbf0d; fy_guid=d0d15721-e7ab-4b97-8f09-7b510487c433; 8507d3409e6fad23_gr_session_id=c9430c16-c265-40a6-be2c-a32264d8d6ab; qtv=522c2ae0e4429a3c; qtk=GYRuYY+MeP51NUBgjcHzJ5xwZR4egG9bkDPWQAAMEUqsElt2bJfK55u/z0Swuj4YVaFmCIAtxhJTjo1Qmz+/5mO7kkdwA31u320hF4uT57WOhuPChBa13fc//E8y8zBmUdVTf3FoiMC6QxXBVm6nZQ==; 8507d3409e6fad23_gr_session_id_c9430c16-c265-40a6-be2c-a32264d8d6ab=true",
"Host": "m.fanyi.qq.com",
"Origin": "http://m.fanyi.qq.com",
"Referer": "http://m.fanyi.qq.com/browser",
"User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Mobile Safari/537.36",
"X-Requested-With": "XMLHttpRequest"
}
url = "http://m.fanyi.qq.com/translate"

data = {
"from": 0,
"to": 1,
"sourceText": "宝都",
"type": 1,
"latitude": 1,
"longitude": 1,
"platform": "H5"
}

response = requests.post(url,headers=headers,data=data)
result = response.content.decode()

print(result)